﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace StoreApp.Models
{
    public class StoreAppDbContext : DbContext, IDisposable
    {
        public DbSet<Product> Products { get; set; }

        public StoreAppDbContext()
            : base("StoreAppDb")
        {
            System.Data.Entity.Database.SetInitializer(new StoreAppDbInitializer());
        }

        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);
            GC.SuppressFinalize(this);
        }

    }
}